package com.netease.pris.activity.view;

import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;

class at
{
  private static final int s = 50;
  boolean a;
  boolean b;
  View c;
  Rect d;
  Rect e;
  int f;
  int g;
  int h;
  int i;
  int j;
  int k;
  int l;
  int m;
  boolean n;
  boolean o;
  int p;
  int q;

  public at(PRISGridView paramPRISGridView, View paramView, Rect paramRect1, Rect paramRect2)
  {
    this.c = paramView;
    this.d = paramRect1;
    this.e = paramRect2;
    this.a = false;
    this.b = false;
    e();
  }

  private void e()
  {
    boolean bool1 = false;
    this.g = Math.abs(this.e.left - this.d.left);
    this.h = Math.abs(this.e.top - this.d.top);
    boolean bool2;
    if (this.e.left - this.d.left >= 0)
    {
      bool2 = true;
      this.n = bool2;
      if (this.e.top - this.d.top >= 0)
        bool1 = true;
      this.o = bool1;
      if (this.g <= this.h)
        break label133;
      this.f = this.g;
      label115: if (this.f != 0)
        break label144;
      this.a = true;
    }
    while (true)
    {
      return;
      bool2 = false;
      break;
      label133: this.f = this.h;
      break label115;
      label144: this.k = this.d.left;
      this.l = this.d.top;
      this.i = this.k;
      this.j = this.l;
      this.p = 50;
      this.q = (this.f / 5);
    }
  }

  public boolean a()
  {
    if ((!this.a) && (!this.b));
    for (int i1 = 1; ; i1 = 0)
      return i1;
  }

  public void b()
  {
    int i2;
    label94: int i1;
    if (this.g >= this.h)
    {
      if (this.f < this.p)
        break label329;
      if (this.n)
      {
        this.i += this.p;
        this.f -= this.p;
        i2 = (this.g - this.f) * this.h / this.g;
        if (!this.o)
          break label378;
        this.j = (i2 + this.l);
        this.p += this.q;
      }
    }
    else if (this.h > this.g)
    {
      if (this.f < this.p)
        break label408;
      if (!this.o)
        break label392;
      this.j += this.p;
      label149: this.f -= this.p;
      i1 = (this.h - this.f) * this.g / this.h;
      if (!this.n)
        break label457;
    }
    label392: label408: label457: for (this.i = (i1 + this.k); ; this.i = (this.k - i1))
    {
      this.p += this.q;
      Message localMessage = PRISGridView.c(this.r).obtainMessage(-1, this.c);
      Bundle localBundle = new Bundle();
      localBundle.putInt("left", this.i);
      localBundle.putInt("top", this.j);
      localBundle.putInt("right", this.i + this.c.getWidth());
      localBundle.putInt("bottom", this.j + this.c.getHeight());
      localMessage.setData(localBundle);
      PRISGridView.c(this.r).sendMessage(localMessage);
      return;
      this.i -= this.p;
      break;
      label329: if (this.n)
        this.i += this.f;
      while (true)
      {
        this.f = 0;
        this.a = true;
        break;
        this.i -= this.f;
      }
      label378: this.j = (this.l - i2);
      break label94;
      this.j -= this.p;
      break label149;
      if (this.o)
        this.j += this.f;
      while (true)
      {
        this.f = 0;
        this.a = true;
        break;
        this.j -= this.f;
      }
    }
  }

  public boolean c()
  {
    return this.a;
  }

  public void d()
  {
    this.b = true;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.view.at
 * JD-Core Version:    0.6.0
 */